package myGUI3;

public class trivialtest {
	static String calendarCompare = null;
	static String calendarContent = null;
	public static void main(String[] args) {
		
		String title 	= "ICS 314 Exam";
		String dStart 	= "20130811";
		String dEnd		= "20130815";
		String tStart	= "000000";
		String tEnd		= "020000";
		String loc 		= "University of Hawaii";
		String com		= "Final Exam!";
		String res		= "No books, no cheat sheets!";
		String cl		= "PUBLIC";
		String pri		= "HIGH";
		String freq		= "NONE";
		String cou 		= "0";
		String inter	= "0";
		String desc 	= "This is important!";
		iCalEvent3 testiCalEvent = new iCalEvent3(title, dStart, dEnd, tStart, tEnd, loc, com, res, cl, pri, freq, cou, inter, desc);
		String calendarContent = null ;
		if (testiCalEvent.createFile()) 
		{
			calendarContent = testiCalEvent.getContent();
		}
			
		String calendarCompare = "BEGIN:VCALENDAR\n"+
				"VERSION:2.0\n"+
				"PRODID:-//teamflagler/ics314//HUYNGHIEM v2.0//EN\n"+
				"BEGIN:VTIMEZONE\n"+
				"TZID:America/Los_Angeles\n"+
				"BEGIN:DAYLIGHT\n"+
				"COMMENT:Info for daylight savings\n"+
				"DTSTART:19330430T020000\n"+
				"TZNAME:Pacific Daylight Time\n"+
				"RDATE:19330430T020000\n"+
				"END:DAYLIGHT\n"+
				"BEGIN:STANDARD\n"+
				"COMMENT:Info for standard time\n"+
				"DTSTART:19470608T020000\n"+
				"TZNAME:Pacific Standard Time\n"+
				"RDATE:19470608T020000\n"+
				"END:STANDARD\n"+
				"END:VTIMEZONE\n"+
				"BEGIN:VEVENT\n"+
				"COMMENT:Final Exam!\n"+
				"CREATED:20130811T220832Z\n"+
				"UID:<>\n"+
				"CLASS:PUBLIC\n"+
				"PRIORITY:HIGH\n"+
				"DTSTART;TZID=America/Los_Angeles:20130811T000000\n"+
				"DTEND;TZID=America/Los_Angeles:20130815T020000\n"+
				"TRANSP:OPAQUE\n"+
				"SUMMARY:ICS 314 Exam\n"+
				"LOCATION:University of Hawaii\n"+
				"RESOURCES:No books, no cheat sheets!\n"+
				"DTSTAMP:20130811T220832Z\n"+
				"DESCRIPTION:This is important!n\n"+
				"END:VEVENT\n"+
				"END:VCALENDAR\n";
	
			
			System.out.println(calendarContent);
			System.out.println((calendarCompare));
			
			
		}
		
		
	}

	
